﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LocAddr.aspx.cs" Inherits="WMS6.Web.Configuration.LocAddr" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>LocAddr</title>
     <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/Verification.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newLocAddr()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "LocAddr.aspx?from="+escape(from);
            return false;
        }


        //弹出窗口选择节点
        function selectLocSite()
        {
            var rtnValue = popModalWindow('../Configuration/LocSiteQuery.aspx?action=txtLocSiteID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtLocSiteID").focus();
                document.getElementById("txtLocSiteID").value = rtnValue;
            }
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 180px;
            height: 22px;
        }
    </style>
</head>
<body>
    <form id="F2261" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="地址" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnGoBack %>" Enabled="False"  
                            CausesValidation="False" onclick="btnGoBack_Click" meta:resourcekey="btnGoBackResource1" 
                               /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnNew %>" Enabled="False"  
                            AccessKey="n"  OnClientClick="newLocAddr(); return false;" meta:resourcekey="btnNewResource1" 
                             /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnSave %>" Enabled="False" 
                            AccessKey="s" onclick="btnSave_Click" meta:resourcekey="btnSaveResource1" 
                                /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnDelete %>" 
                            Enabled="False"  AccessKey="d" 
                            
                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" 
                            onclick="btnDelete_Click" meta:resourcekey="btnDeleteResource1"    /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnCopy %>" Enabled="False" 
                            AccessKey="c" onclick="btnCopy_Click" meta:resourcekey="btnCopyResource1" 
                               /></td>
                </tr>
            </table>
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server">
                <ContentTemplate>
                    <div>
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                            meta:resourcekey="lblMsg"></asp:Label>
                    </div>
                    
                    
                    <div id="div_menu">
                        <div style="float: left; width: 8px;">
                            <div class="tabL" id="imgL1"></div>
                        </div>
                        <div class="tabLabelCont tabCur" id="div1">
                            <asp:Label ID="one1" CssClass="hover" runat="server" 
                                meta:resourcekey="one1" >基本信息</asp:Label></div>
                        <div style="float: left; margin-right: 2px;">
                            <div class="tabR" id="imgR1"></div>
                        </div>
                    </div>
                    
                    <div id="div_content">
                        <div id="con_one_1" style="display: block;">
                                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                    <tr>
                                        <td style="width:180px;"><asp:Label ID="lblLocAddrID" CssClass="label" 
                                                runat="server" Text="地址代码" meta:resourcekey="lblLocAddrID"></asp:Label><font class="must_input">*</font></td>
                                        <td style="width:180px;"><asp:Label ID="lblLocSiteID" CssClass="label" 
                                                runat="server" Text="节点代码" meta:resourcekey="lblLocSiteID"></asp:Label><font class="must_input">*</font></td>
                                        <td style="width:180px;"><asp:Label ID="lblContactName" CssClass="label" 
                                                runat="server" Text="联系人" meta:resourcekey="lblContactName"></asp:Label></td>
                                        <td style="width:180px;"><asp:Label ID="lblTelephone" CssClass="label" 
                                                runat="server" Text="电话" meta:resourcekey="lblTelephone"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td><asp:TextBox ID="txtLocAddrID" runat="server" CssClass="textbox" 
                                                meta:resourcekey="txtLocAddrID"></asp:TextBox></td>
                                        <td><asp:TextBox ID="txtLocSiteID" runat="server" CssClass="textbox" 
                                                meta:resourcekey="txtLocSiteID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectLocSite();"/></td>
                                        <td><asp:TextBox ID="txtContactName" runat="server" CssClass="textbox" 
                                                meta:resourcekey="txtContactName"></asp:TextBox></td>
                                        <td><asp:TextBox ID="txtTelphone" runat="server" CssClass="textbox" 
                                                onblur="Javascript:dataVer._IsPhone(this,'lblMsg')" 
                                                meta:resourcekey="txtTelphone"></asp:TextBox></td>
                                    </tr>
                                    
                                    <tr>
                                        <td><asp:Label ID="lblEmail" CssClass="label" runat="server" Text="Email" 
                                                meta:resourcekey="lblEmail"></asp:Label></td>
                                        <td><asp:Label ID="lblFax" CssClass="label" runat="server" Text="传真" 
                                                meta:resourcekey="lblFax"></asp:Label></td>
                                        <td><asp:Label ID="lblProvince" CssClass="label" runat="server" Text="省份" 
                                                meta:resourcekey="lblProvince"></asp:Label></td>
                                        <td><asp:Label ID="lblCity" CssClass="label" runat="server" Text="城市" 
                                                meta:resourcekey="lblCity"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td><asp:TextBox ID="txtEmail" runat="server" CssClass="textbox" 
                                                onblur="Javascript:dataVer._IsMail(this,'lblMsg')" 
                                                meta:resourcekey="txtEmail"></asp:TextBox></td>
                                        <td><asp:TextBox ID="txtFax" runat="server" CssClass="textbox" 
                                                onblur="Javascript:dataVer._IsFax(this,'lblMsg')" 
                                                meta:resourcekey="txtFax"></asp:TextBox></td>
                                        <td><asp:TextBox ID="txtProvince" runat="server" CssClass="textbox" 
                                                meta:resourcekey="txtProvince"></asp:TextBox></td>
                                        <td><asp:TextBox ID="txtCity" runat="server" CssClass="textbox" 
                                                meta:resourcekey="txtCity"></asp:TextBox></td>
                                    </tr>
                                    
                                    <tr>
                                        <td><asp:Label ID="lblZip" CssClass="label" runat="server" Text="邮编" 
                                                meta:resourcekey="lblZip"></asp:Label></td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td><asp:TextBox ID="txtZip" runat="server" CssClass="textbox" 
                                                onblur="Javascript:dataVer._IsPost(this,'lblMsg')" 
                                                meta:resourcekey="txtZip"></asp:TextBox></td>
                                        <td>
                                            <asp:CheckBox ID="chbIsWeekEndWork" runat="server" CssClass="checkbox" 
                                                meta:resourcekey="chbIsWeekEndWork" Text="周末是否上班" />
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="chbIsActive" runat="server" Checked="True" 
                                                CssClass="checkbox" meta:resourcekey="chbIsActive" Text="启用" />
                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td width="360px" colspan="2">
                                            <asp:Label ID="lblAddress" CssClass="label" runat="server" Text="地址" 
                                                meta:resourcekey="lblAddress"></asp:Label>
                                        </td>
                                        <td width="360px" colspan="2">
                                            <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" 
                                                meta:resourcekey="lblRemark"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="360px" colspan="2">
                                            <asp:TextBox ID="txtAddress" runat="server" CssClass="largetextarea" 
                                                TextMode="MultiLine" meta:resourcekey="txtAddress"></asp:TextBox>
                                        </td>
                                        <td width="360px" colspan="2">
                                            <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" 
                                                TextMode="MultiLine" meta:resourcekey="txtRemark"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr style="height:10px;">
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                    </tr>
                                </table>
                        </div>
                    </div>
                 </ContentTemplate>
         </asp:UpdatePanel>
        <input type="hidden" id="hdnFrom" runat="server" />
        
    </div>
    </form>
</body>
</html>
